<template>
  <header>
      <div class="img-list">
        <img class="img-item" src="@/assets/images/logo.png" alt="">
      </div>
      <div class="search" @click="goSearch">
        <i class="iconfont icon-fangdajing"></i>
        <span>搜你喜欢的...</span>
      </div>
      <div class="iconFont">
        <i class="iconfont icon-kefu"></i>
      </div>
  </header>
</template>

<script>
export default {
  methods: {
    goSearch() {
      this.$router.push('/Search')
    }
  }
}
</script>

<style scoped>
  header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 1.2rem;
    background-color: #b0352f;
  }
  .img-item {
    height: 1.2rem;
    vertical-align:middle;
  }
  .search {
    display: flex;
    align-items: center;
    width: 6rem;
    height: 0.6rem;
    background-color: #FFF;
    border-radius: 12px;
  }
  .iconFont i {
    font-size: .64rem;
    color: #FFF;
  }
  .search i{
    padding: 0 .14rem;
    color: #AEAFAA;
  }
  .search span{
    font-size: .34rem;
    color: #AEAFAA;
  }
</style>